#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
#include <assert.h>

void my_strcpy(char* dest, const char* src)
{
	assert(src != NULL);
	assert(dest != NULL);

	while (*src != '\0')
	{
		*dest++ = *src++;
	}
	*dest = *src;
}
int main()
{
	char arr1[] = "hello bit";
	char arr2[20] = "xxxxxxxxxxxxxxxx";

	my_strcpy(arr2, arr1);

	printf("%s\n",arr2);
	return 0;;
}